package com.pap.upload.file.auto.entity;

import java.io.Serializable;

import com.pap.base.entity.PapBaseEntity;
import com.pap.base.mybatis.plugin.annotation.MyBatisColumnAnnotation;
import com.pap.base.mybatis.plugin.annotation.MyBatisTableAnnotation;

@MyBatisTableAnnotation(name = "t_base_file", namespace = "com.pap.upload.file.auto.mapper.BaseFileMapper", remarks = " 修改点 ", aliasName = "t_base_file t_base_file")
public class BaseFile extends PapBaseEntity implements Serializable {
	/**
	 * 编码,所属表字段为t_base_file.CODE
	 */
	@MyBatisColumnAnnotation(name = "CODE", value = "t_base_file_CODE", chineseNote = "编码", tableAlias = "t_base_file")
	private String code;

	/**
	 * 文件归属订单编码,所属表字段为t_base_file.ORDER_ID
	 */
	@MyBatisColumnAnnotation(name = "ORDER_ID", value = "t_base_file_ORDER_ID", chineseNote = "文件归属订单编码", tableAlias = "t_base_file")
	private String orderId;

	/**
	 * 文件所属合同编码,所属表字段为t_base_file.CONT_ID
	 */
	@MyBatisColumnAnnotation(name = "CONT_ID", value = "t_base_file_CONT_ID", chineseNote = "文件所属合同编码", tableAlias = "t_base_file")
	private String contId;

	/**
	 * 名称,所属表字段为t_base_file.NAME
	 */
	@MyBatisColumnAnnotation(name = "NAME", value = "t_base_file_NAME", chineseNote = "名称", tableAlias = "t_base_file")
	private String name;

	/**
	 * 文件类型-字典表,所属表字段为t_base_file.FILE_TYPE
	 */
	@MyBatisColumnAnnotation(name = "FILE_TYPE", value = "t_base_file_FILE_TYPE", chineseNote = "文件类型-字典表", tableAlias = "t_base_file")
	private String fileType;

	/**
	 * 文件自定义类型,所属表字段为t_base_file.FILE_CUSTOMER_TYPE
	 */
	@MyBatisColumnAnnotation(name = "FILE_CUSTOMER_TYPE", value = "t_base_file_FILE_CUSTOMER_TYPE", chineseNote = "文件自定义类型", tableAlias = "t_base_file")
	private String fileCustomerType;

	/**
	 * 文件路径,所属表字段为t_base_file.FILE_PATH
	 */
	@MyBatisColumnAnnotation(name = "FILE_PATH", value = "t_base_file_FILE_PATH", chineseNote = "文件路径", tableAlias = "t_base_file")
	private String filePath;

	/**
	 * 最近一次下载时间,所属表字段为t_base_file.DOWNLOAD_TIME
	 */
	@MyBatisColumnAnnotation(name = "DOWNLOAD_TIME", value = "t_base_file_DOWNLOAD_TIME", chineseNote = "最近一次下载时间", tableAlias = "t_base_file")
	private String downloadTime;

	private static final long serialVersionUID = 1L;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getContId() {
		return contId;
	}

	public void setContId(String contId) {
		this.contId = contId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getFileCustomerType() {
		return fileCustomerType;
	}

	public void setFileCustomerType(String fileCustomerType) {
		this.fileCustomerType = fileCustomerType;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getDownloadTime() {
		return downloadTime;
	}

	public void setDownloadTime(String downloadTime) {
		this.downloadTime = downloadTime;
	}

	@Override
	public String getDynamicTableName() {
		return "t_base_file";
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", code=").append(code);
		sb.append(", orderId=").append(orderId);
		sb.append(", contId=").append(contId);
		sb.append(", name=").append(name);
		sb.append(", fileType=").append(fileType);
		sb.append(", fileCustomerType=").append(fileCustomerType);
		sb.append(", filePath=").append(filePath);
		sb.append(", downloadTime=").append(downloadTime);
		sb.append("]");
		return sb.toString();
	}
}